package com.renchunlin.logindemo01.api

import com.renchunlin.logindemo01.domain.QequestUserData
import com.renchunlin.logindemo01.domain.ResponseLogin
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Path

/*
 * class title: 
 * Author by RenChunLin, Email 18957806320@163.com, Date on 2021/4/21.
 * PS: Not easy to write code, please indicate.
 */
interface ApiService {
    companion object {
        const val BASE_URL = "https://api.sunofbeach.net/"
    }

    //登录
    @POST("uc/user/login/{captcha}")
    fun toLogin(@Path("captcha") captcha: String, @Body user: QequestUserData): Call<ResponseLogin>
}